import request from '@/router/axios';

export function fetchList(query) {
  return request({
    url: '/core/adopt/user/page',
    method: 'get',
    params: query,
  });
}

export function getObj(id) {
  return request({
    url: `/core/adopt/user/${id}`,
    method: 'get',
  });
}

export function putObj(data) {
  return request({
    url: `/core/adopt/user/examine`,
    method: 'put',
    data,
  });
}

export function getQuestionInfo(id) {
  return request({
    url: `/core/adopt/user/info/${id}`,
    method: 'get',
  });
}
